export default [
    {
        path: '/zhuce',
        name: 'zhuce',
        component: () => import('../views/Zhuce.vue')
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('../views/Login.vue')
    },
    {
        path: '/details',
        name: 'details',
        component: () => import('../views/details.vue')
    },
    {
        path: '/home',
        name: 'home',
        component: () => import('../views/Home.vue'),
        redirect: '/home/student_info',
        children: [
            // 首页下的二级
            {
                path: 'student_info',
                name: 'student_info',
                component: () => import('../views/home/student_info.vue'),
                meta: [
                    {
                        name: '主页',
                    },
                ]
            },
            {
                path: 'chengji_fx',
                name: 'chengji_fx',
                component: () => import('../views/chengji_fx/chengji_fx.vue'),
                meta: [
                    {
                        name: '主页',
                        url: '/home',
                    },
                    {
                        name: "成绩分析"
                    }
                ]

            },

            // 学生信息录入
            {
                path: 'stu_luru',
                name: 'stu_luru',
                component: () => import('../views/home/stu_luru.vue'),
                meta: [
                    {
                        name: '主页',
                        url: '/home',
                    },
                    {
                        name: "学生信息录入"
                    }
                ],
            },

            // 导航
            // 学生成绩录入

            // 入学成绩录入
            {
                path: 'ruxue_enter',
                name: 'ruxue_enter',
                component: () => import('../views/stu_Enter/ruxue/stu_enter.vue'),
                meta: [
                    {
                        name: '主页',
                        url: '/home',
                    },
                    {
                        name: "入学成绩录入"
                    }
                ],
            },
            // 入学个人成绩查询
            {
                path: 'ruxue_chaxun',
                name: 'ruxue_chaxun',
                component: () => import('../views/stu_Enter/ruxue/ruxue_chaxun.vue'),
                meta: [
                    {
                        name: '主页',
                        url: '/home',
                    },
                    {
                        name: "入学个人成绩查询"
                    }
                ],
            },
            //入学所有成绩查询
            {
                path: 'all_chaxun',
                name: 'all_chaxun',
                component: () => import('../views/stu_Enter/ruxue/all_chaxun.vue'),
                meta: [
                    {
                        name: '主页',
                        url: '/home',
                    },
                    {
                        name: "入学所有成绩查询"
                    }
                ],
            },
            // 期中成绩录入
            {
                path: 'qiz_luru',
                name: 'qiz_luru',
                component: () => import('../views/stu_Enter/qizhong/qiz_luru.vue'),
                meta: [
                    {
                        name: '主页',
                        url: '/home',
                    },
                    {
                        name: "期中成绩录入"
                    }
                ],
            },
            // 期中个人成绩查询
            {
                path: 'qiz_chaxun',
                name: 'qiz_chaxun',
                component: () => import('../views/stu_Enter/qizhong/qiz_chaxun.vue'),
                meta: [
                    {
                        name: '主页',
                        url: '/home',
                    },
                    {
                        name: "期中成绩查询"
                    }
                ],
            },
            // 期中所有成绩查询
            {
                path: 'qiz_all_chaxun',
                name: 'qiz_all_chaxun',
                component: () => import('../views/stu_Enter/qizhong/qiz_all_chaxun.vue'),
                meta: [
                    {
                        name: '主页',
                        url: '/home',
                    },
                    {
                        name: "期中所有学生成绩查询"
                    }
                ],
            },
            // 期末成绩录入
            {
                path: 'qim_luru',
                name: 'qim_luru',
                component: () => import('../views/stu_Enter/qimo/qim_luru.vue'),
                meta: [
                    {
                        name: '主页',
                        url: '/home',
                    },
                    {
                        name: "期末成绩录入"
                    }
                ],
            },
            // 期末个人成绩查询
            {
                path: 'qim_chaxun',
                name: 'qim_chaxun',
                component: () => import('../views/stu_Enter/qimo/qim_chaxun.vue'),
                meta: [
                    {
                        name: '主页',
                        url: '/home',
                    },
                    {
                        name: "期末成绩查询"
                    }
                ],
            },
            // 期末所有学生成绩查询
            {
                path: 'qim_all_chaxun',
                name: 'qim_all_chaxun',
                component: () => import('../views/stu_Enter/qimo/qim_all_chaxun.vue'),
                meta: [
                    {
                        name: '主页',
                        url: '/home',
                    },
                    {
                        name: "期末所有学生成绩查询"
                    }
                ],
            },
            {
                path: 'photoup',
                name: 'photoup',
                component: () => import('../views/home/photoup.vue'),
                meta: [
                    {
                        name: '主页',
                        url: '/home',
                    },
                    {
                        name: "学生信息录入",
                        url: '/home/stu_luru'
                    },
                    {
                        name: "拍照上传",
                    }
                ],
            },
            {
                path: 'stu_chaxun',
                name: 'stu_chaxun',
                component: () => import('../views/home/stu_chaxun.vue'),
                meta: [
                    {
                        name: '主页',
                        url: '/home',
                    },
                    {
                        name: "学生信息查询"
                    }
                ],
                children: [
                    {
                        path: 'mouge',
                        name: 'mouge',
                        component: () => import('../views/stuinfochaxun/Mouge.vue'),
                        meta: [
                            {
                                name: '主页',
                                url: '/home',
                            },
                            {
                                name: "学生信息查询",
                                url: "/home/stu_chaxun"
                            },
                            {
                                name: '某个学生信息查询'
                            }
                        ],
                    },
                    {
                        path: 'all',
                        name: 'all',
                        component: () => import('../views/stuinfochaxun/All.vue'),
                        meta: [
                            {
                                name: '主页',
                                url: '/home',
                            },
                            {
                                name: "学生信息查询",
                                url: "/home/stu_chaxun/all"
                            },
                            {
                                name: '所有学生信息查询'
                            }
                        ],

                    }
                ]
            },
            // 带头像的学生信息
            {
                path: 'headall',
                name: 'headall',
                component: () => import('../views/home/HeadAll.vue'),
                meta: [
                    {
                        name: '主页',
                        url: '/home',
                    },
                    {
                        name: "学生信息查询",
                        url: "/home/stu_chaxun"
                    },
                    {
                        name: '所有学生信息查询',
                        url: "/home/stu_chaxun/all"
                    }, {
                        name: '带头像的所有学生信息查询',
                    }
                ],
            },
            // 不带头像的学生信息
            {
                path: 'nohead',
                name: 'nohead',
                component: () => import('../views/home/NoHead.vue'),
                meta: [
                    {
                        name: '主页',
                        url: '/home',
                    },
                    {
                        name: "学生信息查询",
                        url: "/home/stu_chaxun"
                    },
                    {
                        name: '所有学生信息查询',
                        url: "/home/stu_chaxun/all"
                    }, {
                        name: '不带头像的所有学生信息查询',
                    }
                ],
            },
        ]

    },

    {
        path: '/',
        redirect: {
            name: 'login'
        }
    }
]